<form id="edit-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><a style="color: red">*</a>商家頭像:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-logo" data-rule="required;" class="form-control" size="50" name="shop[logo]" type="text" value="{$shop.logo|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-logo" class="btn btn-danger faupload" data-input-id="c-logo" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-logo"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-logo"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-logo"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><a style="color: red">*</a>商家名稱:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required;length(~10)" class="form-control" name="shop[name]" placeholder="請輸入商家名稱" type="text" value="{$shop.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><a style="color: red">*</a>經營類目:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cat_id" data-rule="required" data-source="goods_category/index" placeholder="請選擇經營類目" class="form-control selectpage" name="shop[cat_id]" data-params='{"custom[parent_id]":"0"}' type="text" value="{$shop.cat_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><a style="color: red">*</a>法人姓名:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-corporate" data-rule="required;length(~10)" class="form-control" name="shop[corporate]" placeholder="請輸入法人姓名" type="text" value="{$shop.corporate|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><a style="color: red">*</a>手機號:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mobile" data-rule="required;length(~11)" class="form-control" name="shop[mobile]" placeholder="請輸入手機號" type="text" value="{$shop.mobile|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><a style="color: red">*</a>公司地址:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-address_detail" data-rule="required;length(~50)" class="form-control" name="shop[address_detail]" placeholder="請輸入公司地址" type="text" value="{$shop.address_detail|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><a style="color: red">*</a>身份證號碼:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-id_card" data-rule="required;length(~20)" class="form-control" name="shop[id_card]" placeholder="請輸入身份證號碼" type="text" value="{$shop.id_card|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><a style="color: red">*</a>身份證正面照:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-id_card_positive_images" data-rule="required;" class="form-control" size="50" name="shop[id_card_positive_images]" type="text" value="{$shop.id_card_positive_images|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-id_card_positive_images" class="btn btn-danger faupload" data-input-id="c-id_card_positive_images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-id_card_positive_images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-id_card_positive_images"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-id_card_positive_images"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><a style="color: red">*</a>身份證反面照:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-id_card_back_images" class="form-control" size="50" name="shop[id_card_back_images]" type="text" value="{$shop.id_card_back_images|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-id_card_back_images" class="btn btn-danger faupload" data-input-id="c-id_card_back_images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-id_card_back_images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-id_card_back_images"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-id_card_back_images"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><a style="color: red">*</a><a style="color: red">*</a>回鄉證號碼:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-return_permit" data-rule="required;length(~20)" class="form-control" name="shop[return_permit]" placeholder="請輸入身份證號碼" type="text" value="{$shop.return_permit|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><a style="color: red">*</a>回鄉證正面照:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-return_permit_positive_images" data-rule="required;" class="form-control" size="50" name="shop[return_permit_positive_images]" type="text" value="{$shop.return_permit_positive_images|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-return_permit_positive_images" class="btn btn-danger faupload" data-input-id="c-return_permit_positive_images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-return_permit_positive_images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-return_permit_positive_images"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-return_permit_positive_images"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><a style="color: red">*</a>回鄉證反面照:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-return_permit_back_images" class="form-control" size="50" name="shop[return_permit_back_images]" type="text" value="{$shop.return_permit_back_images|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-return_permit_back_images" class="btn btn-danger faupload" data-input-id="c-return_permit_back_images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-return_permit_back_images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-return_permit_back_images"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-return_permit_back_images"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><a style="color: red">*</a>營業執照:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-yyzz_images" data-rule="required;" class="form-control" size="50" name="shop[yyzz_images]" type="text" value="{$shop.yyzz_images|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-yyzz_images" class="btn btn-danger faupload" data-input-id="c-yyzz_images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-yyzz_images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-yyzz_images"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-yyzz_images"></ul>
        </div>
    </div>
    <div class="form-group">
        <label  class="control-label col-xs-12 col-sm-2"><a style="color: red">*</a>賬號:</label>
        <div class="col-xs-12 col-sm-8"">
            <input id="c-title" data-rule="required;length(~20)" class="form-control" name="row[username]" placeholder="請輸入賬號" type="text" value="{$row.username|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="password" class="control-label col-xs-12 col-sm-2"><a style="color: red">*</a>密碼:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="password" data-rule="required;length(~20)" class="form-control" id="password" name="row[bright_password]" autocomplete="new-password" value="{$row.bright_password|htmlentities}"   placeholder="請輸入密碼"/>
        </div>
    </div>
    <div class="form-group hidden layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
